## Script (Python) "getAllowedSDotFolders"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
import AccessControl
folders = container.portal_catalog(portal_type=['sdotNewsFolder','NewsFolder'], sort_on='id', review_state=['published','visible'])
results = []
ck = AccessControl.getSecurityManager().checkPermission;
for folder in folders:
     if ck('Add portal content', folder.getObject()):
         results.append(folder)

return results
